package com.ruoyi.neusoft.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.neusoft.mapper.AiIdentifyCollectionImageTMapper;
import com.ruoyi.neusoft.domain.AiIdentifyCollectionImageT;
import com.ruoyi.neusoft.service.IAiIdentifyCollectionImageTService;
import com.ruoyi.common.core.text.Convert;

/**
 * AI智能识别数据集的图像Service业务层处理
 * 
 * @author AI
 * @date 2023-12-06
 */
@Service
public class AiIdentifyCollectionImageTServiceImpl implements IAiIdentifyCollectionImageTService 
{
    @Autowired
    private AiIdentifyCollectionImageTMapper aiIdentifyCollectionImageTMapper;

    /**
     * 查询AI智能识别数据集的图像
     * 
     * @param imageId AI智能识别数据集的图像主键
     * @return AI智能识别数据集的图像
     */
    @Override
    public AiIdentifyCollectionImageT selectAiIdentifyCollectionImageTByImageId(Long imageId)
    {
        return aiIdentifyCollectionImageTMapper.selectAiIdentifyCollectionImageTByImageId(imageId);
    }

    /**
     * 查询AI智能识别数据集的图像列表
     * 
     * @param aiIdentifyCollectionImageT AI智能识别数据集的图像
     * @return AI智能识别数据集的图像
     */
    @Override
    public List<AiIdentifyCollectionImageT> selectAiIdentifyCollectionImageTList(AiIdentifyCollectionImageT aiIdentifyCollectionImageT)
    {
        return aiIdentifyCollectionImageTMapper.selectAiIdentifyCollectionImageTList(aiIdentifyCollectionImageT);
    }

    /**
     * 新增AI智能识别数据集的图像
     * 
     * @param aiIdentifyCollectionImageT AI智能识别数据集的图像
     * @return 结果
     */
    @Override
    public int insertAiIdentifyCollectionImageT(AiIdentifyCollectionImageT aiIdentifyCollectionImageT)
    {
        aiIdentifyCollectionImageT.setCreateTime(DateUtils.getNowDate());
        return aiIdentifyCollectionImageTMapper.insertAiIdentifyCollectionImageT(aiIdentifyCollectionImageT);
    }

    /**
     * 修改AI智能识别数据集的图像
     * 
     * @param aiIdentifyCollectionImageT AI智能识别数据集的图像
     * @return 结果
     */
    @Override
    public int updateAiIdentifyCollectionImageT(AiIdentifyCollectionImageT aiIdentifyCollectionImageT)
    {
        aiIdentifyCollectionImageT.setUpdateTime(DateUtils.getNowDate());
        return aiIdentifyCollectionImageTMapper.updateAiIdentifyCollectionImageT(aiIdentifyCollectionImageT);
    }

    /**
     * 批量删除AI智能识别数据集的图像
     * 
     * @param imageIds 需要删除的AI智能识别数据集的图像主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyCollectionImageTByImageIds(String imageIds)
    {
        return aiIdentifyCollectionImageTMapper.deleteAiIdentifyCollectionImageTByImageIds(Convert.toStrArray(imageIds));
    }

    /**
     * 删除AI智能识别数据集的图像信息
     * 
     * @param imageId AI智能识别数据集的图像主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyCollectionImageTByImageId(Long imageId)
    {
        return aiIdentifyCollectionImageTMapper.deleteAiIdentifyCollectionImageTByImageId(imageId);
    }
}
